Micron Document
🎖️GitЯра🎖️

Node / meshcore / MeshCore / files / src / helpers / ui / GenericVibration.cpp

Displaying Raw • Download

src/helpers/ui/GenericVibration.cpp 890a2e2cffa98dea3ca88db3c3aba72ef23ff3f7 (890a2e2c) Text, 726 B

Tff7b72#Tff7b72ifdef PIN_VIBRATION
Tff7b72#Tff7b72include T8b949e"GenericVibration.h"

Tffa657void Td2a8ffGenericVibration::beginTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3pinModeTb4b4b4(Te6edf3PIN_VIBRATIONTb4b4b4, Te6edf3OUTPUTTb4b4b4)Tb4b4b4;
Te6edf3digitalWriteTb4b4b4(Te6edf3PIN_VIBRATIONTb4b4b4, Te6edf3LOWTb4b4b4)Tb4b4b4;
Te6edf3duration Tff7b72= T79c0ff0Tb4b4b4;
Tb4b4b4}

Tffa657void Td2a8ffGenericVibration::triggerTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3duration Tff7b72= Te6edf3millisTb4b4b4(Tb4b4b4)Tb4b4b4;
Te6edf3digitalWriteTb4b4b4(Te6edf3PIN_VIBRATIONTb4b4b4, Te6edf3HIGHTb4b4b4)Tb4b4b4;
Tb4b4b4}

Tffa657void Td2a8ffGenericVibration::loopTb4b4b4(Tb4b4b4) Tb4b4b4{
Tff7b72if Tb4b4b4(Te6edf3isVibratingTb4b4b4(Tb4b4b4)Tb4b4b4) Tb4b4b4{
Tff7b72if Tb4b4b4(Tb4b4b4(Te6edf3millisTb4b4b4(Tb4b4b4) Tff7b72/ T79c0ff1000Tb4b4b4) Tff7b72% T79c0ff2 Tff7b72=Tff7b72= T79c0ff0Tb4b4b4) Tb4b4b4{
Te6edf3digitalWriteTb4b4b4(Te6edf3PIN_VIBRATIONTb4b4b4, Te6edf3LOWTb4b4b4)Tb4b4b4;
Tb4b4b4} Tff7b72else Tb4b4b4{
Te6edf3digitalWriteTb4b4b4(Te6edf3PIN_VIBRATIONTb4b4b4, Te6edf3HIGHTb4b4b4)Tb4b4b4;
Tb4b4b4}

Tff7b72if Tb4b4b4(Te6edf3millisTb4b4b4(Tb4b4b4) Tff7b72- Te6edf3duration Tff7b72> Te6edf3VIBRATION_TIMEOUTTb4b4b4) Tb4b4b4{
Te6edf3stopTb4b4b4(Tb4b4b4)Tb4b4b4;
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}

Tffa657bool Td2a8ffGenericVibration::isVibratingTb4b4b4(Tb4b4b4) Tb4b4b4{
Tff7b72return Te6edf3duration Tff7b72> T79c0ff0Tb4b4b4;
Tb4b4b4}

Tffa657void Td2a8ffGenericVibration::stopTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3duration Tff7b72= T79c0ff0Tb4b4b4;
Te6edf3digitalWriteTb4b4b4(Te6edf3PIN_VIBRATIONTb4b4b4, Te6edf3LOWTb4b4b4)Tb4b4b4;
Tb4b4b4}

Tff7b72#Tff7b72endif T8b949e// ifdef PIN_VIBRATION

Served by rngit 1.5.0 - Generated in 0.06s